home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 March / macformat-022.iso / Shareware City / Developers / Tools Plus 2.5.1 ƒ / Tools Plus 2.5.1 / User Manual / 05-Windows (3 of 3) < prev    next >
Encoding:
Text File  |  1994-05-28  |  1.4 KB  |  35 lines  |  [TEXT/ttxt]

  1.  
  2. WindowKind
  3. ``````````
  4. Determine a window’s type.
  5.  
  6.    pascal short WindowKind (short Window);
  7.  
  8.    function WindowKind (Window: INTEGER): INTEGER;
  9.  
  10.   Window is the window number of a Tools Plus window.  Window must be less than or equal to MaxWindows as defined by InitToolsPlus.  The window may be hidden.
  11.  
  12.   The function with a value that corresponds to the type of window being referenced.  The four constants that can be used to evaluate a window’s type are wNoKind (window is not open), wToolBarKind, wFloatingKind, and wStandardKind.
  13.  
  14. CONST                     {Kinds of windows:             }
  15.     wNoKind       = 0;    {Not open                      }
  16.     wToolBarKind  = 1;    {Tool Bar                      }
  17.     wFloatingKind = 2;    {Floating Palette              }
  18.     wStandardKind = 3;    {Standard Window               }
  19.  
  20. ------------------------------------------------------------------------
  21.  
  22. WindowPointer
  23. `````````````
  24. Get the pointer to a Tools Plus window.
  25.  
  26.    pascal WindowPtr WindowPointer (short Window);
  27.  
  28.    function WindowPointer(Window: INTEGER): WindowPtr;
  29.  
  30.   This function returns a window pointer to a Tools Plus window regardless if it is open or not.
  31.  
  32.   Window is the window number of a Tools Plus window.  Window must be less than or equal to MaxWindows as defined by InitToolsPlus.  If it is not, nil is returned.
  33.  
  34. ------------------------------------------------------------------------
  35.